package com.itheima.reggie.dto;

import com.itheima.reggie.entity.Orders;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * OrderDto
 *
 * @author 24040
 * @name OrdersDto
 * @date 2022-08-01 22:41
 */
@Data
@Slf4j
public class OrdersDto extends Orders {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;//根据日期查询 开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;//根据日期查询 结束时间
}
